/*
 * 컴파일을 위해 올려 놓은 소스 입니다.
 * 서버에 반영하지 마시고 다른국가에 적용할 경우 서버에 있는 class 를 카피해서 사용하십시오.
 * 
 */
package com.pushmsg.otaconf;
import java.util.*;


public class OtaWBXML {
	
	private static Hashtable hCode = null;

	public OtaWBXML()
	{
		initCodeTable();
	}
	private void initCodeTable() 
	{
		hCode = new Hashtable();		
		hCode.put("ENDINLINESTR", new Integer(0x00));
		hCode.put("END", new Integer(0x01));
		hCode.put("INLINESTRING", new Integer(0x03));		
		hCode.put("CHARACTERISTIC-LIST", new Integer(0x05));
		hCode.put("CHARACTERISTIC", new Integer(0x06));
		hCode.put("PARAM", new Integer(0x07));
		hCode.put("TYPE_ADDRESS",new Integer(0x06) );
		hCode.put("TYPE_URL",new Integer(0x07) );
		hCode.put("TYPE_NAME",new Integer(0x08) );
		hCode.put("NAME",new Integer(0x10) );
		hCode.put("VALUE",new Integer(0x11) );
		hCode.put("NAME_BEARER",new Integer(0x12) );
		hCode.put("NAME_PROXY",new Integer(0x13) );
		hCode.put("NAME_PORT",new Integer(0x14) );
		hCode.put("NAME_NAME",new Integer(0x15) );
		hCode.put("NAME_PROXY_TYPE",new Integer(0x16) );
		hCode.put("NAME_URL",new Integer(0x17) );
		hCode.put("NAME_PROXY_AUTHNAME",new Integer(0x18) );
		hCode.put("NAME_PROXY_AUTHSECRET",new Integer(0x19) );
		hCode.put("NAME_SMS_SMSC_ADDRESS",new Integer(0x1A) );
		hCode.put("NAME_USSD_SERVICE_CODE",new Integer(0x1B) );
		hCode.put("NAME_GPRS_ACCESSPOINTNAME",new Integer(0x1C) );
		hCode.put("NAME_PPP_LOGINTYPE",new Integer(0x1D) );
		hCode.put("NAME_PROXY_LOGINTYPE",new Integer(0x1E) );
		hCode.put("NAME_CSD_DIALSTRING",new Integer(0x21) );
		hCode.put("NAME_CSD_CALLTYPE",new Integer(0x28) );
		hCode.put("NAME_CSD_CALLSPEED",new Integer(0x29) );
		hCode.put("NAME_PPP_AUTHTYPE",new Integer(0x22) );
		hCode.put("NAME_PPP_AUTHNAME",new Integer(0x23) );
		hCode.put("NAME_PPP_AUTHSECRET",new Integer(0x24) );
		hCode.put("VALUE_GSM/CSD",new Integer(0x45) );
		hCode.put("VALUE_GSM/SMS",new Integer(0x46) );
		hCode.put("VALUE_GSM/USSD",new Integer(0x47) );
		hCode.put("VALUE_IS-136/CSD",new Integer(0x48) );
		hCode.put("VALUE_GPRS",new Integer(0x49) );
		hCode.put("VALUE_9200",new Integer(0x60) );
		hCode.put("VALUE_9201",new Integer(0x61) );	
		
		hCode.put("VALUE_9202",new Integer(0x62) );
		hCode.put("VALUE_9203",new Integer(0x63) );
		hCode.put("VALUE_AUTOMATIC",new Integer(0x64) );
		hCode.put("VALUE_MANUAL",new Integer(0x65) );
		hCode.put("VALUE_AUTO",new Integer(0x6A) );
		hCode.put("VALUE_9600",new Integer(0x6B) );
		hCode.put("VALUE_14400",new Integer(0x6C) );
		hCode.put("VALUE_19200",new Integer(0x6D) );
		hCode.put("VALUE_28800",new Integer(0x6E) );
		hCode.put("VALUE_38400",new Integer(0x6F) );
		hCode.put("VALUE_PAP",new Integer(0x70) );
		hCode.put("VALUE_CHAP",new Integer(0x71) );
		hCode.put("VALUE_ANALOGUE",new Integer(0x72) );
		hCode.put("VALUE_ISDN",new Integer(0x73) );
		hCode.put("VALUE_43200",new Integer(0x74) );
		hCode.put("VALUE_57600",new Integer(0x75) );
		hCode.put("VALUE_MSISDN_NO",new Integer(0x76) );
		hCode.put("VALUE_IPV4",new Integer(0x77) );
		hCode.put("VALUE_MS_CHAP",new Integer(0x78) );
		hCode.put("TYPE_MMSURL",new Integer(0x7C) );
		hCode.put("TYPE_ID",new Integer(0x7D) );
		hCode.put("NAME_ISP_NAME",new Integer(0x7E) );
		hCode.put("TYPE_BOOKMARK",new Integer(0x7F) );
		
		hCode.put("CONTENT",new Integer(0x40) );
		hCode.put("ATTRIBUTE", new Integer(0x80));		
		
		// for Email
		hCode.put("TYPE_MAIL", new Integer(0x30));
		hCode.put("NAME_MAIL_PROTO", new Integer(0x31));
		hCode.put("NAME_MAIL_INSERVER", new Integer(0x32));
		hCode.put("NAME_MAIL_OUTSERVER", new Integer(0x33));
		hCode.put("NAME_MAIL_UID", new Integer(0x34));
		hCode.put("NAME_MAIL_PWD", new Integer(0x35));
		hCode.put("NAME_MAIL_UADDR", new Integer(0x36));
		hCode.put("VALUE_POP3", new Integer(0x37));
		hCode.put("VALUE_IMAP4", new Integer(0x38));
		hCode.put("NAME_MAIL_SMTP_AUTH", new Integer(0x39));
		hCode.put("VALUE_TRUE", new Integer(0x3A));
		hCode.put("VALUE_FALSE", new Integer(0x3B));
		hCode.put("TYPE_JAVA_DOWNURL", new Integer(0x3C));
		hCode.put("NAME_MMS_POSTOFFICE", new Integer(0x3D));
	}
	public byte getValue(String key)
	{
		Integer value = (Integer) hCode.get(key);
		if(value==null)
			return (byte)0xFF;
		else
			return value.byteValue();
	}
}